package com.chenju.javastatic.adapter;

import org.objectweb.asm.Opcodes;

public class OuterMethodVisitorAdapter extends MethodVisitorAdapter{
    public String owner;
    public String name;
    public String descriptor;
    public String outerType;

    public OuterMethodVisitorAdapter(String owner, String name, String descriptor, String outerType) {
        this(Opcodes.ASM9, owner, name, descriptor, outerType);
        if (this.getClass() != OuterMethodVisitorAdapter.class){
            throw new IllegalStateException();
        }
    }

    public OuterMethodVisitorAdapter(int api, String owner, String name, String descriptor, String outerType){
        super(api);
        this.owner = owner;
        this.name = name;
        this.descriptor = descriptor;
        this.outerType = outerType;
    }
}
